package top.huxy.boot.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huxy.boot.annotation.Operation;
import top.huxy.boot.model.entity.User;

/**
 * @Classname UserMapper
 * @Description UserMapper
 * @Date 2021/9/5 9:09
 * @Created by huxy
 */
@Repository
@Mapper
public interface UserMapper {

    @Operation("用户邮箱注册")
    int addUser(String email);

    User getUserByEmail(String email);

    int checkUserNickName(String email, String nickName);


    int getUserCount();

    int getNewUserCount(long lastDate);
}
